package gx.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import gx.dao.NewsTypeDao;
import gx.entity.NewsType;
import gx.service.common.BaseService;

@Service
public class NewsTypeService extends BaseService<NewsType>  {
	private NewsTypeDao newsTypeDao;

	public NewsTypeDao getNewsTypeDao() {
		return newsTypeDao;
	}
	@Autowired
	public void setNewsTypeDao(NewsTypeDao newsTypeDao) {
		this.newsTypeDao = newsTypeDao;
		super.setDao(this.newsTypeDao);
	}

public List<NewsType> findByName(String name){
	return newsTypeDao.findByName(name);
	 
}
}
